package com.linsir.file.exception;

import com.linsir.core.code.ICode;
import com.linsir.core.exception.IException;

/**
 * @author ：linsir
 * @date ：Created in 2022/9/15 0:49
 * @description：文件上传异常处理
 * @modified By：
 * @version: 0.0.1
 */
public class FileException extends RuntimeException implements IException {

    private ICode code;

    @Override
    public ICode getCode() {
        return this.code;
    }


    /***
    * @Description:
    * @Param: [msg]
    * @return:
    * @Author: linsir
    * @Date: 2022/9/15 0:55
    */
    public FileException(String msg)
    {
        super(msg);
    }

    public FileException(ICode code,String msg)
    {
        super(msg);
        this.code = code;
    }
}
